PID=`ps -ef |grep "livechat-timeshift.jar" | grep -v grep | awk '{print $2}'`
if [ -n "$PID" ]; then
   kill -9 $PID
fi
nohup java -jar /root/deploy/livechat-timeshift/segment-sync-service/target/livechat-timeshift.jar -Xmx100m -Xms100m > ~/logs/livechat_timeshift/livechat.log 2 > ~/logs/livechat_timeshift/livechat_error.log &
